home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / misc / astyped.sty < prev    next >
Text File  |  1993-04-01  |  946b  |  24 lines

  1. %%%%%%%%%%%%%%%%%%%%%% @(#)astyped.sty    1.3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. %
  3. % ASTYPED DOCUMENT-STYLE OPTION - released 88/06/30
  4. %    for LaTeX version 2.09
  5. % Based on Leslie Lamport's verbatim environment in latex.tex.
  6.  
  7. % Defines the `astyped' environment, which is like the `verbatim'
  8. % environment except most of the special characters have their usual meanings.
  9. % Space, ^K, and ^A are the only specials changed.
  10.  
  11. \def\astyped{\trivlist \item[]\if@minipage\else\vskip\parskip\fi
  12. \leftskip\@totalleftmargin\rightskip\z@
  13. \parindent\z@\parfillskip\@flushglue\parskip\z@
  14. \@tempswafalse \def\par{\if@tempswa\hbox{}\fi\@tempswatrue\@@par}
  15. \obeylines \tt \catcode``=13 \@noligs \let\do\@makeother \do\ \do\^^K\do\^^A
  16.  \frenchspacing\@vobeyspaces}
  17.  
  18. \let\endastyped=\endtrivlist
  19.  
  20. % Used inside astyped environments for normal formatting of a line.
  21. % I wish I could give space its normal catcode within \notastyped.
  22. \def\notastyped#1{\mbox{\rm #1}}
  23.  
  24.